<?php $this->load->view('common/dpc-head');?>
<?php $this->load->view('common/dpc-header');?>
<?php $this->load->view('common/dpc-home-slider');?>
<?php $this->load->view('common/dpc-top-search');?>
<div role="main">
    <div class="browse-a-z">
                <h2>Browse Stores By Alphabet</h2>
                <ul>
                        <li><a href="/all-promo-codes/0-9">0-9</a></li>
                                    <?php for($a=65;$a<=90;$a++){ ?>
                                        <li><a href="/all-promo-codes/<?php echo chr($a);?>"><?php echo chr($a);?></a></li>
                                        <?php }?>
                </ul>
                <div style="clear:both;"></div>
            </div>
            <div style="clear:both;"></div>
	<?php $this->load->view('common/dpc-top-cat');?>
	<div class="stripe-regular items-carousel-wrap">
		<div class="row">
			<div class="column">
				<h2>New Discount Codes</h2>
			</div>
		</div>
		<div id="new-coupons" class="row collapse">
			<div class="column">
				<div class="items-carousel flexslider">
					<ul class="rr slides">
                    <?php foreach($allLatestCoupons as $temp){?>
						<li>
							<div class="wrapper-3 item-thumb">
								<div class="top">
									<figure>
										<img src="
										<?php if(isset($temp['coupon_image']) && $temp['coupon_image']!=''){ echo $temp['coupon_image'];}
										else { echo $temp['store_image'];}?>
										" alt="<?php echo $temp['store_name'];?> promo code" style="box-shadow:0px 0px 2px #A049BB;border-radius:3px;">
									</figure>
									<h2 class="alt">
										<a href="/<?php echo $temp['store_url'];?>-promo-codes"><?php echo substr($temp['coupon_name'], 0, 32);?> ..
										<br /><span style="font-weight:normal;color:#0099FF;font-size:14px;"><?php echo $temp['store_name'];?></span></a>
									</h2>
								</div>
								<div class="bottom">
									<!-- <p class="value secondary">&#8377;&nbsp;&nbsp;&nbsp;<?php echo $temp['coupon_off_by'];?> OFF</p>-->
									<p class="value secondary"><?php if($temp['coupon_off_in']=='Percentage'){ echo $temp['coupon_off_by'].' %';}else{ echo '&#8377;&nbsp;&nbsp;&nbsp;'.$temp['coupon_off_by'];}?> <?php if($temp['coupon_offer_only']=='Yes'){ echo 'offer';}else{ echo 'off';}?></p>
									<h6><?php echo $temp['diff'];?>days left</h6>
									<a href="/<?php echo $temp['store_url'];?>-promo-codes" class="input button red secondary">Get Coupon</a>
								</div>
							</div>
						</li>
                        <?php } ?>
					</ul>
				</div>
			</div>
		</div>
	</div>

	<div class="stripe-white big items-carousel-wrap">
		<div class="row">
			<div class="column">
				<h2>Popular Promo Codes</h2>
			</div>
		</div>
		<div id="popular-coupons" class="row collapse">
			<div class="column">
				<div class="items-carousel flexslider">
					<ul class="rr slides">
                    <?php foreach($allFeaturedCoupons as $temp){?>
						<li>
							<div class="wrapper-3 item-thumb">
								<div class="top">
									<figure>
										<img src="
										<?php if(isset($temp['coupon_image']) && $temp['coupon_image']!=''){ echo $temp['coupon_image'];}
										else { echo $temp['store_image'];}?>
										" alt="<?php echo $temp['store_name'];?> promo code" style="box-shadow:0px 0px 2px #A049BB;border-radius:3px;">
									</figure>
									<h2 class="alt">
										<a href="/<?php echo $temp['store_url'];?>-promo-codes"><?php echo substr($temp['coupon_name'], 0, 32);?> ..
										<br /><span style="font-weight:normal;color:#0099FF;font-size:14px;"><?php echo $temp['store_name'];?></span></a>
									</h2>
								</div>
								<div class="bottom">
									<!-- <p class="value secondary">&#8377;&nbsp;&nbsp;&nbsp;<?php echo $temp['coupon_off_by'];?> OFF</p>-->
									<p class="value secondary"><?php if($temp['coupon_off_in']=='Percentage'){ echo $temp['coupon_off_by'].' %';}else{ echo '&#8377;&nbsp;&nbsp;&nbsp; '.$temp['coupon_off_by'];}?> <?php if($temp['coupon_offer_only']=='Yes'){ echo 'offer';}else{ echo 'off';}?></p>
									<h6><?php echo $temp['diff'];?> days left</h6>
									<a href="/<?php echo $temp['store_url'];?>-promo-codes" class="input button red secondary">Get Coupon</a>
								</div>
							</div>
						</li>
                        <?php } ?>
					</ul>
				</div>
			</div>
		</div>
	</div>

	<div class="stripe-regular">
		<div class="row">
			<div class="small-6 large-6 columns" style="float:left;">
				<div class="row collapse">
					<div class="column">
						<div class="info-box">
							<h2 id="how-it-works" class="alt">How It Works?</h2>
							<p id="how-it-works-content" class="text" align="justify">At discountpromocodes.in we are dedicated in providing you with the best possible voucher codes, offers and deals so that you can save some of your hard earned money while shopping online or for online booking. Our team is working hard to ensure that all the promo codes and deals provided are genuine, latest and accurate. Enjoy savings by using coupon codes provided. To get the latest offers and promo codes, you can also subscribe to our newsletter</p>
						</div>
					</div>
				</div>
				<div class="row collapse">
					<div class="column">
						<div class="testimonials-box flexslider">
							<ul class="rr slides">
								<?php foreach($randomReviews as $temp){?>
								<li>
									<div class="testimonial">
										<div class="wrapper-5 bubble">
											<p class="text small rr"><?php echo $temp['reviews_content'];?></p>
										</div>
										<h5 id="review-by" class="alt text-right"><?php echo ucfirst($temp['reviews_by']);?></h5>
									</div>
								</li>
								<?php }?>
							</ul>
						</div>
					</div>
				</div>
			</div>
			<?php if(isset($bannersArray) && !empty($bannersArray)){?>
                  <div class="banner video-box small" style="width:230px;height:192px;float:right;">
                    <a href="<?php echo $bannersArray[0]['banner_link'];?>" target="_blank" rel="nofollow"><img src="<?php echo $bannersArray[0]['banner_image'];?>" alt="<?php echo $bannersArray[0]['banner_alt'];?>" border="0" /></a>
                  </div>
            <?php }?>
            <div style="clear:both;"></div>
		</div>
	</div>
</div>
<?php $this->load->view('common/dpc-footer');?>
